<script>
  function obrazlozenjeChange(obr)
  {
     if(obr == 'slobodan unos')
     {
       $('#slobodno').removeClass('hide');
       $('#slobodno').focus();
     }
     else $('#slobodno').addClass('hide');
  }
</script>

<?php
  use_helper('jQuery', 'Form');
?>

<div id="razred_holder" style="float:left;">
  <?php echo $razred_sel ?>
</div>
<div id="predmet_holder" style="float:left;"></div>

<div style="float: left;">
   <?php echo select_tag('obrazlozenje', options_for_select(OcenaPeer::$obrazlozenje), array("class" => "hide", "onchange" => "obrazlozenjeChange(this.value)")); ?>
   <input type="text" name="slobodno" id="slobodno" class="hide" />
</div>

<div id="indicator" style="float:left; display: none;"><?php echo image_tag("ajax-loading_2.gif", array("alt" => __("Čuva se"))) ?></div>

<div style="padding-top: 30px;" id="dnevnik_holder"></div>
